
package cz.czu.pef.DataModelling.beans;

import java.util.List;
import java.util.Locale;
import java.util.Map;

import org.richfaces.component.SortOrder;

import cz.czu.pef.common.CustomFilterField;
import cz.czu.pef.common.CustomSortField;


public interface DataProvider<T> extends java.io.Serializable
{

	public T getItemByKey(java.lang.Object key);

	public List<T> getItemsByRange(int firstRow, int endRow);

	public Object getKey(T item);

	int getRowCount();

	public List<CustomFilterField> getCustomFilterFields();

	public void setCustomFilterFields(Map<String, String> filterValues);

	public List<CustomSortField> getCustomSortFields();

	public void setCustomSortFields(Map<String, SortOrder> sortsOrders);

	public void setLocale(Locale locale);

	public Locale getLocale();
}
